package com.hbnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.Paper;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.PaperPageQuery;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
public interface PaperMapper extends BaseMapper<Paper> {
    // 校级审核员查询：指定参数名为page、paperPageQuery、user
    IPage<com.hbnu.system.model.vo.PaperVO> schoolGetRelatePaperQuery(
            @Param("page") Page<com.hbnu.system.model.vo.PaperVO> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、paperPageQuery、dept
    IPage<com.hbnu.system.model.vo.PaperVO> collegeGetRelatePaperQuery(
            @Param("page") Page<com.hbnu.system.model.vo.PaperVO> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );

    IPage<com.hbnu.system.model.vo.PaperVO> userGetRelatePaperQuery(
            @Param("page") Page<com.hbnu.system.model.vo.PaperVO> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );

    IPage<Paper> schoolExportRelatePaperQuery(
            @Param("page") Page<Paper> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );

    IPage<Paper> collegeExportRelatePaperQuery(
            @Param("page") Page<Paper> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );

    IPage<Paper> userExportRelatePaperQuery(
            @Param("page") Page<Paper> page,
            @Param("paperPageQuery") PaperPageQuery query,
            @Param("user") User user
    );
}
